package com.xhui.vimarket.common.exception;


public class ManagerException extends BaseException {
    
    /**
     * .
     */
    private static final long serialVersionUID = 1L;
    
    /**
     * @param anErrorCode
     *            String
     * @param aManagerName
     *            String
     */
    
    public ManagerException(final String anErrorCode, final String aManagerName) {
        super.setMessageKey(anErrorCode);
        this.setManagerName(aManagerName);
    }
    
    /**
     * @param anErrorCode
     *            String
     * @param anException
     *            Exception
     * @param aManagerName
     *            String
     */
    public ManagerException(final String anErrorCode,
        final Exception anException, final String aManagerName) {
        super.setMessageKey(anErrorCode);
        super.setRootCause(anException);
        this.setManagerName(aManagerName);
    }
    
    /**
     * @param aManagerName
     *            String
     */
    public void setManagerName(final String aManagerName) {
        super.setPlusInfo("(" + aManagerName + ")");
    }
    
    /**
     * @return String
     */
    public String getManagerName() {
        return super.getPlusInfo();
    }
    
}
